<template>
	<div>
		<div  v-for="(item,index) in list" :key="index">
			<div class="item-list">
				<span class="iconfont item-list-icon">&#xe60a;</span>
				{{item.title}}
			</div>
			<div v-if="item.children" class="item-children">
				<detail-list :list="item.children"></detail-list>
			</div>
		</div>
	</div>
</template>

<script>
	export default {
		name: 'DetailList',
		props: {
			list: Array
		}
	}
</script>

<style lang="stylus" scoped>
	.item-list-icon
		position: relative
		left: .04rem
		top: .06rem
		color: #528fcc
		font-size: .36rem
	.item-children
		padding: 0 .2rem
</style>